﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity.InterceptionExtension;
using System.Collections.Concurrent;
using System.Threading;
namespace Xys.Remp.Thallo.Strategy {
    //internal sealed class DynamicStrategy : BasicStrategy, IDisposable {
    //    static ConcurrentDictionary<int, HashSet<string>> _keys = new ConcurrentDictionary<int, HashSet<string>>();
    //    static HashSet<int> _methods = new HashSet<int>();
    //    static ReaderWriterLock _rw = new ReaderWriterLock();

    //    internal static readonly IStrategy Current = new DynamicStrategy();
    
    //    protected override string SetCacheItemAndReturnKey(IMethodInvocation inputs, MethodCacheItem item, CachedableAttribute opa) {
    //        var key = base.SetCacheItemAndReturnKey(inputs, item, opa);
    //        Store.Remove(key);
    //        Store.Add(key, item);
    //        return key;
    //    }

     
    //}
}
